package com.xm.settlement.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xm.settlement.commons.utils.JsonUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2017/3/1.
 */
@TableName(value = "app_stock_log")
public class AppStockLog implements Serializable{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /** 商品管理ID */

    @TableField(value = "app_goods_id")
    private Long appGoodsId;

    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private Double goodsPrice;

    /** 修改前库存 */
    @TableField(value = "ex_Amount")
    private Integer exAmount;

    /** 修改后库存 */
    @TableField(exist = false)
    private Integer amount;

    /** 创建人 */
    @TableField(value = "create_id")
    private Long createId;

    /**创建时间*/
    @TableField(value = "create_time")
    private Date createTime;

    /** 修改人 */
    @TableField(value = "update_id")
    private Long updateId;

    /**修改时间*/
    @TableField(value = "update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAppGoodsId() {
        return appGoodsId;
    }

    public void setAppGoodsId(Long appGoodsId) {
        this.appGoodsId = appGoodsId;
    }

    public Integer getExAmount() {
        return exAmount;
    }

    public void setExAmount(Integer exAmount) {
        this.exAmount = exAmount;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
